# 使用while循环计算1~100的和
counter = 1
sum100 = 0  # 表示1~100的和
while counter <= 100:
    # print(counter)
    sum100 += counter  # sum100 = sum100 + counter
    counter += 1
print("1~100的和:", sum100)
print("=======================================")





hp = 3
while hp > 0:
    print("吃我一招")
    hp -= 1
    print("hp:", hp)


#print("吃我一招")
#hp -= 1  # hp = hp - 1
#print("吃我一招")
#hp -= 1  # hp = hp - 1
#print("吃我一招")
#hp -= 1  # hp = hp - 1